home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / getscroll.z / getscroll
Encoding:
Text File  |  1998-10-30  |  4.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo((((3333TTTTkkkk))))                                    TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_GetScrollInfo - parse arguments for scrolling commands
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  13.  
  14.      int
  15.      TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo((((_i_n_t_e_r_p, _a_r_g_c, _a_r_g_v, _d_b_l_P_t_r, _i_n_t_P_t_r))))
  16.  
  17. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  18.      Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter to use for error reporting.
  19.  
  20.      int          _a_r_g_c      (in)      Number of strings in _a_r_g_v array.
  21.  
  22.      char         *_a_r_g_v[]   (in)      Argument strings.  These represent the
  23.                                       entire widget command, of which the
  24.                                       first word is typically the widget name
  25.                                       and the second word is typically xxxxvvvviiiieeeewwww
  26.                                       or yyyyvvvviiiieeeewwww.  This procedure parses
  27.                                       arguments starting with _a_r_g_v[2].
  28.  
  29.      double       *_d_b_l_P_t_r   (out)     Filled in with fraction from mmmmoooovvvveeeettttoooo
  30.                                       option, if any.
  31.  
  32.      int          *_i_n_t_P_t_r   (out)     Filled in with line or page count from
  33.                                       ssssccccrrrroooollllllll option, if any.  The value may be
  34.                                       negative.
  35.  
  36.  
  37. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  38.      TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo parses the arguments expected by widget scrolling
  39.      commands such as xxxxvvvviiiieeeewwww and yyyyvvvviiiieeeewwww.  It receives the entire list of words
  40.      that make up a widget command and parses the words starting with _a_r_g_v[2].
  41.      The words starting with _a_r_g_v[2] must have one of the following forms:
  42.  
  43.           mmmmoooovvvveeeettttoooo _f_r_a_c_t_i_o_n
  44.  
  45.           ssssccccrrrroooollllllll _n_u_m_b_e_r uuuunnnniiiittttssss
  46.  
  47.           ssssccccrrrroooollllllll _n_u_m_b_e_r ppppaaaaggggeeeessss
  48.  
  49.      Any of the mmmmoooovvvveeeettttoooo, ssssccccrrrroooollllllll, uuuunnnniiiittttssss, and ppppaaaaggggeeeessss keywords may be abbreviated.
  50.      If _a_r_g_v has the mmmmoooovvvveeeettttoooo form, TTTTKKKK____SSSSCCCCRRRROOOOLLLLLLLL____MMMMOOOOVVVVEEEETTTTOOOO is returned as result and
  51.      *_d_b_l_P_t_r is filled in with the _f_r_a_c_t_i_o_n argument to the command, which
  52.      must be a proper real value.  If _a_r_g_v has the ssssccccrrrroooollllllll form,
  53.      TTTTKKKK____SSSSCCCCRRRROOOOLLLLLLLL____UUUUNNNNIIIITTTTSSSS or TTTTKKKK____SSSSCCCCRRRROOOOLLLLLLLL____PPPPAAAAGGGGEEEESSSS is returned and *_i_n_t_P_t_r is filled in
  54.      with the _n_u_m_b_e_r value, which must be a proper integer.  If an error
  55.      occurs in parsing the arguments, TTTTKKKK____SSSSCCCCRRRROOOOLLLLLLLL____EEEERRRRRRRROOOORRRR is returned and an error
  56.      message is left in _i_n_t_e_r_p->_r_e_s_u_l_t.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo((((3333TTTTkkkk))))                                    TTTTkkkk____GGGGeeeettttSSSSccccrrrroooollllllllIIIInnnnffffoooo((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  75.      parse, scrollbar, scrolling command, xview, yview
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.